<div class="page-sidebar">
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">个人中心</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/newmessage">最新通知</a></li>
            <li class="sidebar-menuitem active"><a href="/mybookings">我的预定</a></li>
            <li class="sidebar-menuitem"><a href="/mymeetings">我的会议</a></li>
            <li class="sidebar-menuitem"><a href="/promoted">我要升职</a></li>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">人员管理</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/register">员工注册</a></li>
            <li class="sidebar-menuitem"><a href="/managerboss/login">登录后台</a></li>
            <#--                      管理员才能显示的功能-->
            <#if currentuser?? && (currentuser.role == 2)>
                <li class="sidebar-menuitem"><a href="/admin/departments">部门管理</a></li>
                <li class="sidebar-menuitem"><a href="/admin/approveaccount">注册审批</a></li>
                <li class="sidebar-menuitem"><a href="/admin/searchemployees?status=1">搜索员工</a></li>
            </#if>

        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">会议预定</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/meetingrooms">查看会议室</a></li>
            <#--            管理员才能显示的功能-->
            <#if currentuser?? && (currentuser.role == 2)>
                <li class="sidebar-menuitem"><a href="/admin/addmeetingroom">添加会议室</a></li>
                <li class="sidebar-menuitem"><a href="/admin/examinemeeting">会议审核</a></li>
            </#if>
            <#--         组长以上显示的功能-->
            <#if currentuser?? && (currentuser.role gte 1)>
                <li class="sidebar-menuitem"><a href="/bookmeeting">预定会议</a></li>
                <li class="sidebar-menuitem"><a href="/searchmeetings">搜索会议</a></li>
            </#if>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">公共云盘</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/filecloud">·云盘·</a></li>
            <#if currentuser?? && (currentuser.role >= 1)>
                <li class="sidebar-menuitem"><a href="/filedelete">云盘管理</a></li>
            </#if>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">部门聊天</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/chat">·聊天·</a></li>
            <li class="sidebar-menuitem"><a href="/chatbyvideo">·视频通话·</a></li>
        </ul>
    </div>
    <div class="sidebar-menugroup">
        <div class="sidebar-grouptitle">娱乐活动</div>
        <ul class="sidebar-menu">
            <li class="sidebar-menuitem"><a href="/awarding">·抽奖·</a></li>
            <#if currentuser?? && (currentuser.role == 2)>
                <li class="sidebar-menuitem"><a href="/admin/awardapproval">奖品发放</a></li>
            </#if>
            <li class="sidebar-menuitem"><a href="/awardshow">获奖记录</a></li>
        </ul>
    </div>
    <#if currentuser?? && (currentuser.role == 1)>
        <div class="sidebar-menugroup">
            <div class="sidebar-grouptitle">考勤管理</div>
            <ul class="sidebar-menu">
                <li class="sidebar-menuitem"><a href="/checkwork">·考勤·</a></li>
            </ul>
        </div>
    </#if>

</div>